package com.xilihui.xlh.business.requests;

import com.xilihui.xlh.business.entities.DownloadMsg;
import com.xilihui.xlh.business.entities.HomeEntity;
import com.xilihui.xlh.business.entities.MsgEntivity;
import com.xilihui.xlh.business.entities.ShopDetailEntity;

import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2018/6/1.
 */

interface HomeService {

    //首页
    @FormUrlEncoded
    @POST("api/index/index")
    Observable<HomeEntity> getHome(
            @Field("access_token") String access_token,
            @Field("lat") String lat,
            @Field("lng") String lng,
            @Field("page") int page
    );
    
    //门店详情
    @FormUrlEncoded
    @POST("/api/agent/agent_detail")
    Observable<ShopDetailEntity> detail(
            @Field("access_token") String access_token,
            @Field("agent_id") int agent_id,
            @Field("page") int page
    );
    
    //消息
    @FormUrlEncoded
    @POST("/api/information/index")
    Observable<MsgEntivity> msg(
            @Field("access_token") String access_token,
            @Field("page") int page
    );
    
}
